<%@ taglib prefix="wctags" tagdir="/WEB-INF/tags" %>
<%@ taglib uri="http://www.ptc.com/windchill/taglib/components" prefix="jca"%>
<%@ taglib prefix="w" uri="http://www.ptc.com/windchill/taglib/wrappers"%>
<%@taglib prefix="baseline" uri="http://www.ptc.com/windchill/taglib/baseline" %>

<%@ include file="/netmarkets/jsp/util/begin.jspf"%>
<%@ include file="/netmarkets/jsp/components/createEditUIText.jspf"%>
<%@ include file="/netmarkets/jsp/components/includeWizBean.jspf"%>

<%--> Get resource bundle. <--%>
<%--> Need to set label for protected attribute.  Framework doesn't get it from data utility or model RB<--%>
<%@ page import="com.ptc.windchill.enterprise.baseline.baselineResource" %>
<fmt:setLocale value="${localeBean.locale}"/>
<fmt:setBundle basename="com.ptc.windchill.enterprise.baseline.baselineResource" />
<fmt:message var="protectedLabel" key="<%= baselineResource.STRICT %>" />
<fmt:message var="lockLabel" key="<%= baselineResource.BASELINE_LOCK_LABEL %>" />

<%-->Build a table descriptor and assign it to page variable td<--%>
<jca:describeAttributesTable var="attributesTableDescriptor" 
                             scope="request" 
                             id="editSetAttributes" 
                             mode="EDIT" 
                             componentType="WIZARD_ATTRIBUTES_TABLE" 
                             type="wt.vc.baseline.ManagedBaseline"
                             label="${attributesTableHeader}">
  <jca:describeProperty id="name" mode="VIEW"/>
  <jca:describeProperty id="number" mode="VIEW" isInfoPageLink="false"/>
  <jca:describeProperty id="description"/>
  <jca:describeProperty id="protected" need="strict" label="${protectedLabel}" includeBlankOption="false"/>
  <jca:describeProperty id="ALL_CUSTOM_HARD_ATTRIBUTES_FOR_INPUT_TYPE"/>
  <jca:describeProperty id="ALL_SOFT_NON_CLASSIFICATION_SCHEMA_ATTRIBUTES"/>
 </jca:describeAttributesTable> 

<%@ include file="/netmarkets/jsp/components/setAttributesWizStep.jspf"%>

<baseline:isBaselineLocked var="isLocked" scope="page" />

<div id="lockCheckbox" >
  <table>
    <tr>
      <td></td>
      <td align="right"><w:checkBox id="lock" name="lock" label="${lockLabel}" renderLabel="true" renderLabelOnRight="true" required="false" checked="${isLocked}" /></td> 
    </tr>
  </table>
</div>

<%@ include file="/netmarkets/jsp/util/end.jspf"%>
